package com.yd.domain.business;

import com.yd.domain.commom.DomainObject;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * @author zy
 * @create 2018-03-07 9:17
 * @desc 旧物
 **/
public class Old extends DomainObject<Old> {
    @NotBlank(message = "重量不能为空")
    private float perWeight;//单件商品重量
    private Date createTime =new Date();//提交日期
    @NotBlank(message = "旧物名称不能为空")
    private String title;//标题
    private String des;//描述
    private String checkUser;//审核人
    private Date checkTime;//审核时间
    @NotBlank(message = "商品类型不能为空")
    private String type;//商品类型
    private String status="0";//状态
    private float price;//估价
    private Boolean ifPic;//是否存在图片
    private String dealStatus="0";//交易状态
    private Date dealTime;//交易日期
    private String addUser;//录入人
    private String remark;//回复
    private String iconUrl;
    /**
     * @Author: zy
     * @Desc:以下是补充字段查询数据列表
     * @Date:  2018/3/8
     * @Param
     */
    private String typeName;//类型名称
    private String checkUserName;//审核人姓名
    private String addUserName;//录入人名字
    private String statusName;//状态--提交、审核、审核通过等状态
    private Boolean ifPicName;//是否存在图片
    private String dealStatusName;//交易状态--是否交易
    public float getPerWeight() {
        return perWeight;
    }

    public void setPerWeight(float perWeight) {
        this.perWeight = perWeight;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Boolean getIfPic() {
        return ifPic;
    }

    public void setIfPic(Boolean ifPic) {
        this.ifPic = ifPic;
    }

    public String getDealStatus() {
        return dealStatus;
    }

    public void setDealStatus(String dealStatus) {
        this.dealStatus = dealStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getDealTime() {
        return dealTime;
    }

    public void setDealTime(Date dealTime) {
        this.dealTime = dealTime;
    }

    public String getAddUser() {
        return addUser;
    }

    public void setAddUser(String addUser) {
        this.addUser = addUser;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCheckUserName() {
        return checkUserName;
    }

    public void setCheckUserName(String checkUserName) {
        this.checkUserName = checkUserName;
    }

    public String getAddUserName() {
        return addUserName;
    }

    public void setAddUserName(String addUserName) {
        this.addUserName = addUserName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public Boolean getIfPicName() {
        return ifPicName;
    }

    public void setIfPicName(Boolean ifPicName) {
        this.ifPicName = ifPicName;
    }

    public String getDealStatusName() {
        return dealStatusName;
    }

    public void setDealStatusName(String dealStatusName) {
        this.dealStatusName = dealStatusName;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    @Override
    public String toString() {
        return "Old{" +
                "perWeight=" + perWeight +
                ", createTime=" + createTime +
                ", title='" + title + '\'' +
                ", des='" + des + '\'' +
                ", checkUser='" + checkUser + '\'' +
                ", checkTime=" + checkTime +
                ", type='" + type + '\'' +
                ", status='" + status + '\'' +
                ", price=" + price +
                ", ifPic=" + ifPic +
                ", dealStatus='" + dealStatus + '\'' +
                ", dealTime=" + dealTime +
                ", addUser='" + addUser + '\'' +
                ", remark='" + remark + '\'' +
                ", iconUrl='" + iconUrl + '\'' +
                ", typeName='" + typeName + '\'' +
                ", checkUserName='" + checkUserName + '\'' +
                ", addUserName='" + addUserName + '\'' +
                ", statusName='" + statusName + '\'' +
                ", ifPicName=" + ifPicName +
                ", dealStatusName='" + dealStatusName + '\'' +
                '}';
    }
}
